package cn.magictodo.weblog.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author liu
 * @since 2023-12-21 22:32
 */

@Getter
@AllArgsConstructor
public enum RedisPrefixEnum {

    REDIS_QUIET_ACCESS_IP("weblog:prohibitAccessIP:","禁止访问IP"),
    REDIS_IS_PUBLISH("weblog:isPublish:","是否发布"),
    REDIS_IP_ID("weblog:ipId:","访问的ip计数"),
    REDIS_ARTICLE_PV("weblog:articlePV:","今日文章访问量"),
    REDIS_ARTICLE_RADE_NUM("weblog:articleReadNum:","今日文章阅读量"),
    REDIS_ARTICLE_DETAIL("weblog:articleDetail:","文章详情"),
    REDIS_USER_TOKEN("weblog:userToken:","用户token"),
    REDIS_USER_TOKEN_REFRESH("weblog:userToken:refresh:","用户token刷新期"),
    ;

    private String prefix;
    private String description;
}
